package com.aruba.controller;

import com.aruba.feignclient.DemoFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignDemoController {
    @Autowired
    private DemoFeignClient demoFeignClient;

    @RequestMapping("/feignDemo")
    public String feignDemo() {
        return demoFeignClient.demo();
    }

    @RequestMapping("/feignTimeout")
    public String feignTimeout() {
        return demoFeignClient.timeout();
    }
}
